package com.example.statemachine.machine.base;

import lombok.Getter;

/**
 * @author jianwei.wang
 * @version v1.0
 * @date 2019/5/8 17:40
 **/
@Getter
public enum  FsmResCode {

    SUCCESS(200,"操作成功"),
    ERROR(500,"系统操作异常"),
    NO_EVENT(400,"没有此事件"),

    NOT_TEMP_STORAGE(401,"当前状态，无法暂存"),
    NOT_SUBMIT(402,"当前状态，无法提交"),
    NOT_REVIEW(403,"当前状态，无法审核"),
    NOT_WITH_DRAW(404,"当前状态，无法撤回"),
    NOT_ANTI_REVIEW(405,"当前状态，无法反审核"),
    NOT_CANCEL(406,"当前状态，无法作废");

    private int code;
    private String info;

    FsmResCode(int code, String info) {
        this.code = code;
        this.info = info;
    }
}
